package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.TravelComment;
import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.query.StrategyCommentQuery;
import cn.wolfcode.wolf2w.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ITravelCommentService {
    void insert(TravelComment travelComment);

    void delete(String id);

    void update(TravelComment travelComment);

    TravelComment findById(String id);

    List<TravelComment> findAll();

    Page query(TravelCommentQuery qo);

    /**
     * 增加评论
     * @param travelComment
     * @param userInfo
     */
    void addComment(TravelComment travelComment, UserInfo userInfo);

    /**
     * 寻找全部的travelId是travelId
     * @param travelId
     * @return
     */
    List<TravelComment> findByTravelId(String travelId);

}